public class Teacher extends Person{
    private String title;   //特有属性：职称


    public Teacher(String id, String name, String title){
        super(id,name);
        this.title = title ;

    }

    //重写父类方法

    @Override
    public void showInfo() {
        super.showInfo();
        System.out.println("身份：教师，职称："+title);

    }
}